package com.literature.search.file.entity.vo;

import com.literature.search.core.entity.LikeFileRelationship;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ClassName LikeListVO
 * @Description TODO
 * @Author abin
 * @Date 2023/3/4 17:01
 * @Version 1.0
 */
@Data
public class LikeListVO {
    @ApiModelProperty(value = "用户Id")
    private String userId;

    @ApiModelProperty(value = "文件Id")
    private String fileId;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "点赞时间")
    private String likeDate;

    @ApiModelProperty(value = "文献缩略图Id")
    private String thumbnailId;

    @ApiModelProperty(value = "文献上传者")
    private String uploader;

    public LikeListVO(LikeFileRelationship relationship) {
        this.userId = relationship.getUserId();
        this.fileId = relationship.getFileId();
        this.likeDate = relationship.getCreateDate();
    }
}
